package net.zhengxinyun.performance.entity;


import net.zhengxinyun.performance.core.LongEntity;

import java.util.List;

/**
 * 市对县指标
 */
public class CountryIndicatorsEntity extends LongEntity {

    private int weight;//权数

    private String indexName;//指标名

    private String leadUnit;//牵头单位

    private String responsibilityUnit;//责任单位

    private String direction;//方向

    private String standardValue;//标准值

    private Double score;//得分率

    private String indexType;//指标级别

    private String superiorIndexId;//上级指标

    private String dateTime;//年份

    private String monthTime;//月份

    private Double finalScore;//最终得分，由得分*权数%得出

    private String audit;

    private String reason;//审核回退原因

    private String mainUnit;

    private String departcode;//备用字段
    private int rank;//备用字段
    private String indexProgress; // 进展情况
    private String problems;// 存在问题
    private int sort;
    private String leadUnitName;
    private String respUnitName;
    private String leadName;
    private List<String> leadNames;

    public String getLeadName() {
        return leadName;
    }

    public void setLeadName(String leadName) {
        this.leadName = leadName;
    }

    public List<String> getLeadNames() {
        return leadNames;
    }

    public void setLeadNames(List<String> leadNames) {
        this.leadNames = leadNames;
    }

    public String getRespUnitName() {
        return respUnitName;
    }

    public void setRespUnitName(String respUnitName) {
        this.respUnitName = respUnitName;
    }

    public String getLeadUnitName() {
        return leadUnitName;
    }

    public void setLeadUnitName(String leadUnitName) {
        this.leadUnitName = leadUnitName;
    }

    public int getSort() {
        return sort;
    }

    public void setSort(int sort) {
        this.sort = sort;
    }

    public String getIndexProgress() {
        return indexProgress;
    }

    public void setIndexProgress(String indexProgress) {
        this.indexProgress = indexProgress;
    }

    public String getProblems() {
        return problems;
    }

    public void setProblems(String problems) {
        this.problems = problems;
    }

    public String getMainUnit() {
        return mainUnit;
    }

    public void setMainUnit(String mainUnit) {
        this.mainUnit = mainUnit;
    }

    public int getRank() {
        return rank;
    }

    public void setRank(int rank) {
        this.rank = rank;
    }

    public String getDepartcode() {
        return departcode;
    }

    public void setDepartcode(String departcode) {
        this.departcode = departcode;
    }

    public String getReason() {
        return reason;
    }

    public void setReason(String reason) {
        this.reason = reason;
    }

    public String getAudit() {
        return audit;
    }

    public void setAudit(String audit) {
        this.audit = audit;
    }

    public void setScore(Double score) {
        this.score = score;
    }

    public Double getFinalScore() {
        return finalScore;
    }

    public void setFinalScore(Double finalScore) {
        this.finalScore = finalScore;
    }

    public String getDateTime() {
        return dateTime;
    }

    public void setDateTime(String dateTime) {
        this.dateTime = dateTime;
    }

    public String getMonthTime() {
        return monthTime;
    }

    public void setMonthTime(String monthTime) {
        this.monthTime = monthTime;
    }

    public int getWeight() {
        return weight;
    }

    public void setWeight(int weight) {
        this.weight = weight;
    }

    public String getIndexName() {
        return indexName;
    }


    public void setIndexName(String indexName) {
        this.indexName = indexName;
    }


    public String getLeadUnit() {
        return leadUnit;
    }


    public void setLeadUnit(String leadUnit) {
        this.leadUnit = leadUnit;
    }


    public String getResponsibilityUnit() {
        return responsibilityUnit;
    }


    public void setResponsibilityUnit(String responsibilityUnit) {
        this.responsibilityUnit = responsibilityUnit;
    }


    public String getDirection() {
        return direction;
    }


    public void setDirection(String direction) {
        this.direction = direction;
    }


    public String getStandardValue() {
        return standardValue;
    }


    public void setStandardValue(String standardValue) {
        this.standardValue = standardValue;
    }


    public Double getScore() {
        return score;
    }

    public String getIndexType() {
        return indexType;
    }


    public void setIndexType(String indexType) {
        this.indexType = indexType;
    }


    public String getSuperiorIndexId() {
        return superiorIndexId;
    }


    public void setSuperiorIndexId(String superiorIndexId) {
        this.superiorIndexId = superiorIndexId;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null){
            return false;
        }
        if (this == obj){
            return true;
        }
        if (obj instanceof CountryIndicatorsEntity){
            CountryIndicatorsEntity countryIndicatorsEntity = (CountryIndicatorsEntity) obj;
            if (countryIndicatorsEntity.getIndexName().equals(this.getIndexName())&&
                    countryIndicatorsEntity.getDateTime().equals(this.getDateTime())&&
                    countryIndicatorsEntity.getIndexType().equals(this.getIndexType())){
                return true;
            }else {
                return false;
            }
        }
        return false;
    }
}